
package system.base;

import framework.core.*;

/*
	Author    :Jackey
	CreateTime:2008-02-15 17:17:01
*/
public class UserMenuinfoSearchEvent extends SearchEvent
{

	private String m_id = "" ; // all

	private String m_user_id = "" ; // all

	private String m_user_code = "" ; // all

	private String m_menu_id = "" ; // all

	private int m_menu_code = Value.NULL_INT ; // all
		

public UserMenuinfoSearchEvent() 
{
	super();
	
	setOrderField(UserMenuinfo.ID);
		
}



	public String getId()
	{
		return m_id ;
	}
	public void setId(String v)
	{
		m_id = v;
	}

	public String getUserId()
	{
		return m_user_id ;
	}
	public void setUserId(String v)
	{
		m_user_id = v;
	}

	public String getUserCode()
	{
		return m_user_code ;
	}
	public void setUserCode(String v)
	{
		m_user_code = v;
	}

	public String getMenuId()
	{
		return m_menu_id ;
	}
	public void setMenuId(String v)
	{
		m_menu_id = v;
	}

	public int getMenuCode()
	{
		return m_menu_code ;
	}
	public void setMenuCode(int v)
	{
		m_menu_code = v;
	}
		



	public String viewId() throws Exception
	{
		return Value.view(getId());
	}

	public String viewUserId() throws Exception
	{
		return Value.view(getUserId());
	}

	public String viewUserCode() throws Exception
	{
		return Value.view(getUserCode());
	}

	public String viewMenuId() throws Exception
	{
		return Value.view(getMenuId());
	}

	public String viewMenuCode() throws Exception
	{
		return Value.view(getMenuCode());
	}


	public Conditions toConditions() throws Exception
	{
		Conditions c = super.toConditions();

	c.add(getCondition(UserMenuinfo.ID,getId()));

	c.add(getCondition(UserMenuinfo.USER_ID,getUserId()));

	c.add(getCondition(UserMenuinfo.USER_CODE,getUserCode()));

	c.add(getCondition(UserMenuinfo.MENU_ID,getMenuId()));

	c.add(getCondition(UserMenuinfo.MENU_CODE,getMenuCode()));
		

			
		return c ;
	}
	
//add by Jackey start

//add by Jackey end
}
